{% extends 'account/base.html' %}

{% load i18n %}
{% load lbforum %}
<!--  { % load avatar_tags % }  -->

{% block title %}
	欢迎查看{{ view_user.username }}的资料{{ topic.subject }} - {{ block.super }}
{% endblock %}

{% block brd-page-id %}brd-profile-about{% endblock %}

{% block main_menu_profile_class %}active{% endblock %}
{% block main_head %}{{ view_user }}<!--  { % trans "'s profile"% }-->的资料{% endblock %}
{% block main_subhead %}<!--  { % trans "Welcome to"% }-->欢迎查看{{ view_user.username }}<!--  { % trans "'s profile"% }-->的资料{% endblock %}

{% block account_main_content %}
    <!--  { % if user == view_user % }  -->
    {% ifequal user view_user %}
	<p class="content-options options">
		<span class="item1"><a href="{% url auth_password_change %}"><!--  { % trans "Change your password"% }-->修改我的密码</a></span> 
	</p>
    {% endifequal %}
    
	<div class="profile ct-group data-group vcard">
		<div class="ct-set data-set set1">
			<div class="ct-box data-box">
				<ul class="user-ident ct-legend">
                    <li class="username fn nickname"><strong>{{ view_user.username }}</strong></li>
					<!--  <li class="usertitle"><span>{ % trans "Member"% }</span></li>-->					
					<li class="useravatar">{% avatar view_user %}</li>
					
				</ul>
				<ul class="data-list">
					<li><span><!--  { % trans "Registered"% }-->注册时间: <strong>{{view_user.date_joined|date:"Y-m-d"}}</strong></span></li>
					<li><span><!--{ % trans "Last login"% }-->最后登录: <strong>{{view_user.last_login|date:"Y-m-d"}}</strong></span></li>
                    <li><span>{% trans "Topics"%}: <strong>{{view_user.topic_set.count}}</strong> </span></li>
					<li><span>{% trans "Posts"%}: <strong>{{view_user.post_set.count}}</strong> </span></li>
				</ul>
			</div>
		</div>
        <div class="ct-set data-set set2">
            <div class="ct-box data-box">
                <h3 class="ct-legend hn"><span>{% trans "Posts"%}{% trans "and" %}{% trans "Topics"%}</span></h3>
                <p class="options">
                    <span class="item1"><a href="{% url lbforum_user_posts view_user.pk %}">{% trans "View all "%}{{view_user.username}}<!--  { %trans "'s posts"% }-->的帖子</a></span>
                    <span><a href="{% url lbforum_user_topics view_user.pk %}">{% trans "View all "%} {{view_user.username}}<!--  { % trans "'s topics"% }--> 的话题</a></span>
                </p>
            </div>
        </div>
	</div>
{% endblock %}
